/********************************************************************************
** Form generated from reading UI file 'QNotebookListItemWidget.ui'
**
** Created: Fri Sep 3 09:08:29 2010
**      by: Qt User Interface Compiler version 4.7.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/

#ifndef UI_QNOTEBOOKLISTITEMWIDGET_H
#define UI_QNOTEBOOKLISTITEMWIDGET_H

#include <QtCore/QVariant>
#include <MAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QGraphicsGridLayout>
#include <QtGui/QGraphicsLinearLayout>
#include <QtGui/QHBoxLayout>
#include <QtGui/QHeaderView>
#include <MLabel>
#include <MWidget>
#include <MApplication>
#include "MClickableImage.h"

QT_BEGIN_NAMESPACE

class MNotebookListItemWidget : public MWidget
{
public:
    QGraphicsGridLayout *gridLayout;
    MImageWidget *lNotebookIcon;
    MLabel *lNotebookName;
    MLabel *lNotesCount;
    MImageWidget *lDeleteMark;
    QGraphicsLinearLayout *horizontalLayout;
    MImageWidget *lTagIcon;
    MLabel *lNotebookTags;

    MNotebookListItemWidget(MWidget* parent = 0) : MWidget(parent)
    {
        if (objectName().isEmpty())
            setObjectName(QString::fromUtf8("MNotebookListItemWidget"));

        gridLayout = new QGraphicsGridLayout(this);
        gridLayout->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum);
        //gridLayout->setSpacing(0);

        lNotebookIcon = new MImageWidget(this);
        lNotebookIcon->setObjectName(QString::fromUtf8("lNotebookIcon"));
        lNotebookIcon->setMinimumSize(QSize(32, 32));

        gridLayout->addItem(lNotebookIcon, 0, 0, 2, 1);
        gridLayout->setAlignment(lNotebookIcon, Qt::AlignCenter);

        lNotebookName = new MLabel(this);
        lNotebookName->setObjectName(QString::fromUtf8("lNotebookName"));
        lNotebookName->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
        QFont font;
        font.setFamily(QString::fromUtf8("Nokia Sans"));
        font.setPointSize(18);
        font.setStyleStrategy(QFont::PreferAntialias);
        lNotebookName->setFont(font);

        gridLayout->addItem(lNotebookName, 0, 1, 1, 1, Qt::AlignLeft|Qt::AlignVCenter);
        lNotesCount = new MLabel(this);
        lNotesCount->setObjectName(QString::fromUtf8("lNotesCount"));
        lNotesCount->setMinimumWidth(100);
        lNotesCount->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Minimum);
        QFont font1;
        font1.setFamily(QString::fromUtf8("Nokia Sans"));
        font1.setPointSize(13);
        font1.setStyleStrategy(QFont::PreferAntialias);
        lNotesCount->setFont(font1);
        //lNotesCount->setStyleSheet(QString::fromUtf8("color: #37b4fc;"));
        //lNotesCount->setAlignment(Qt::AlignRight|Qt::AlignVCenter);

        gridLayout->addItem(lNotesCount, 0, 2, 1, 1, Qt::AlignRight|Qt::AlignVCenter);

        lDeleteMark = new MImageWidget(this);
        lDeleteMark->setObjectName(QString::fromUtf8("lDeleteMark"));
        lDeleteMark->setMinimumSize(QSize(32, 32));
        lDeleteMark->setMaximumSize(QSize(32, 32));
        //lDeleteMark->setScaledContents(true);

        gridLayout->addItem(lDeleteMark, 0, 3, 2, 1);

        horizontalLayout = new QGraphicsLinearLayout(Qt::Horizontal);
        horizontalLayout->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum);
        horizontalLayout->setSpacing(0);

        //horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
        lTagIcon = new MImageWidget(this);
        lTagIcon->setObjectName(QString::fromUtf8("lTagIcon"));
        QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(lTagIcon->sizePolicy().hasHeightForWidth());
        lTagIcon->setSizePolicy(sizePolicy);
        lTagIcon->setMaximumSize(QSize(24, 24));
        lTagIcon->setPixmap(QPixmap(QString::fromUtf8(":/IconAdd/Tag-32.png")));
        //lTagIcon->setScaledContents(true);

        horizontalLayout->addItem(lTagIcon);
        horizontalLayout->setAlignment(lTagIcon, Qt::AlignCenter);


        lNotebookTags = new MLabel(this);
        lNotebookTags->setObjectName(QString::fromUtf8("lNotebookTags"));
        QFont font2;
        font2.setFamily(QString::fromUtf8("Nokia Sans"));
        font2.setPointSize(10);
        font2.setStyleStrategy(QFont::PreferAntialias);
        lNotebookTags->setFont(font2);
        //lNotebookTags->setWordWrap(true);
        QSizePolicy notebookTagsSizePolicy(QSizePolicy::Expanding, QSizePolicy::MinimumExpanding);
        notebookTagsSizePolicy.setHeightForWidth(true);
        lNotebookTags->setSizePolicy(notebookTagsSizePolicy);
        //lNotebookTags->setAlignment(Qt::AlignLeft|Qt::AlignVCenter);
        //lNotebookTags->setContentsMargins(10, 0, 0, 11);
        horizontalLayout->addItem(lNotebookTags);
        horizontalLayout->setAlignment(lNotebookTags, Qt::AlignLeft|Qt::AlignVCenter);
        //horizontalLayout->setMinimumHeight(40);
        //horizontalLayout->setMinimumWidth(700);
        gridLayout->addItem(horizontalLayout, 1, 1, 1, 2);


        QMetaObject::connectSlotsByName(this);
    } // setupUi

    void setViewType(const QString&) {
        //STUB
    }
};

QT_END_NAMESPACE

#endif // UI_QNOTEBOOKLISTITEMWIDGET_H
